﻿@{
    ViewBag.Title = "AddEnterprise";
    Layout = "~/Views/Shared/Layout.cshtml";
    <script src="~/Scripts/Enterprise/AddEnterprise.js"></script>

    <link rel="stylesheet" type="text/css" href="~/content/plugins/select2/select2_metro.css" />
    	<script src="~/content/scripts/form-components.js"></script>     

}

		<!-- BEGIN PAGE CONTAINER-->        
			<div class="container-fluid">
				<!-- BEGIN PAGE HEADER-->
				<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN PAGE TITLE & BREADCRUMB-->
						<h3 class="page-title">
							Empresa
						</h3>

					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN SAMPLE FORM PORTLET-->   
						<div class="portlet box purple">
							<div class="portlet-title">
								<div class="caption"><i class="icon-reorder"></i>Agregar Empresa</div>
								<div class="tools" style="display:none">
									<a href="javascript:;" class="collapse"></a>
									<a href="#portlet-config" data-toggle="modal" class="config"></a>
									<a href="javascript:;" class="reload"></a>
									<a href="javascript:;" class="remove"></a>
								</div>
							</div>
							<div class="portlet-body form form-horizontal ">
								<!-- BEGIN FORM-->
							
                                  <h3 class="form-section">Información ‎de la Empresa</h3>
										<div class="control-group">
										<label class="control-label">Razon Social</label>
										<div class="controls">
											<input  id="txtSocialReason"   type="text" class="span6 m-wrap" value="" />
										</div>
									</div>
									
                                    <div class="control-group">
										<label class="control-label">RUC</label>
										<div class="controls">
											<input id="txtRUC" type="text"   class="span6 m-wrap" value="" />
                                          </div>
									</div>
                                    <div class="control-group">
										<label class="control-label">Dirección Legal</label>
										<div class="controls">
											<input id="txtAddress"  type="text" class="span6 m-wrap" value="" />
										</div>
									</div>

                                   <div class="control-group">
										<label class="control-label">Sector</label>
										<div class="controls">
											<select id="optSector" class="span6 chosen" data-placeholder="Choose a Category" tabindex="1">
												<option value="Category 1">Sector 1</option>
												<option value="Category 2">Sector 2</option>
												<option value="Category 3">Sector 3</option>
                                                <option value="Category 2">Sector 4</option>
												
											</select>
										</div>
									</div>

                                      <div class="control-group">
												<label class="control-label">Grupo Económico</label>
												<div class="controls">
													<select id="optEconomicGroup" class="span6 select2">
														<option value="AL">Grupo Romero</option>
														<option value="WY">Grupo Repsol</option>
                                                        <option value="WY">Sin Grupo</option>
													</select>

                                                    
                                                   
												</div>
                                         
									 </div>
                                       <div class="control-group">
												
												<div class="controls">
                                                    <a data-toggle="modal" href="#ModalBusinessGroup"> Agregar Grupo Económico</a>
												</div>
                                         
									 </div>
                                 

                                
		                              <div class="control-group">
										<label class="control-label">CEM</label>
										<div class="controls">
											<input id="txtRisk"    type="text" class="span6 m-wrap" value="" />
										</div>
									</div>
                                      <div class="control-group">
										<label class="control-label">Valor Default</label>
										<div class="controls">
											<input id="txtValue"    type="text" class="span6 m-wrap" value="" />
										</div>
									</div>
                                     <div style="visibility:hidden" class="control-group">
										<label class="control-label">Fecha de Creación</label>
										<div class="controls">
											<input id="txtDate"    type="text" class="span6 m-wrap" value="" />
										</div>
									</div>


		                            <h3 class="form-section">Información de Representante Legal</h3>

								    <div class="control-group">
										<label class="control-label">Nombres</label>
										<div class="controls">
											<input id="txtName" type="text"    class="span6 m-wrap" />
										</div>
									</div>
                                     <div class="control-group">
										<label class="control-label">Apellido Paterno</label>
										<div class="controls">
											<input id="txtFirstName" type="text"    class="span6 m-wrap" />
										</div>
									</div>
                                     <div class="control-group">
										<label class="control-label">Apellido Materno</label>
										<div class="controls">
											<input id="txtLastName" type="text"    class="span6 m-wrap" />
										</div>
									</div>
                                    <div class="control-group">
										<label class="control-label">DNI</label>
										<div class="controls">
											<input id="txtDNI"    type="text" class="span6 m-wrap" />
										</div>
									</div>
                                    <div class="control-group">
										<label class="control-label">Telefono</label>
										<div class="controls">
											<input id="txtPhone"    type="text" class="span6 m-wrap" />
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Email</label>
										<div class="controls">
											<div class="input-icon left">
												<i class="icon-envelope"></i>
												<input id="txtEmail"    style="height:35px;" class="m-wrap " type="text" placeholder="Correo Electronico" />    
											</div>
										</div>
									</div>



                               <div class="form-actions">
                                 <a id="add-enterprise" class="btn blue" href="/enterprise/searchenterprise" ><i class="icon-ok"></i> Guardar</a>
	                              <a class="btn" href="/enterprise/searchenterprise">Cancelar</a> 
                               </div>



							</div>
								<!-- END FORM-->  
							
						</div>
						<!-- END SAMPLE FORM PORTLET-->

					</div>
				</div>
				<!-- END PAGE CONTENT-->
			</div>
			<!-- END PAGE CONTAINER-->


          
					<div id="ModalBusinessGroup" class="modal hide fade" tabindex="-1" data-width="500">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
							<h3>Agregar Grupo Económico</h3>
						</div>
						<div class="modal-body">
							<div class="scroller" style="height:200px" data-always-visible="1" data-rail-visible1="1">
                                <div class="span8 responsive" data-tablet="span12 fix-offset" data-desktop="span6">
                            
                                 
									<div class="control-group">
										<label class="control-label">Nombre</label>
										<div class="controls">
											<input id="txtEconomicGroupName" type="text" class="span4 m-wrap" />
										</div>
									</div>
									
                                   <div class="control-group">
										<label class="control-label">Reputación</label>
										<div class="controls">
                                            <select id="optEconomicGroupReputation" class="span4 chosen" data-placeholder="Choose a Category" tabindex="1">
												<option value="1">1</option>
												<option value="2">2</option>
												<option value="3">3</option>
                                                <option value="4">4</option>
												<option value="5">5</option>
											</select>
										</div>
									</div>




		                           

                                </div>
							</div>
						</div>
                                <div class="form-actions">
                                    <button id="add-businnes" data-dismiss="modal" class="btn purple"><i class="icon-ok"></i> Guardar</button>
	                                 <button class="btn" data-dismiss="modal" type="button"> Cancelar </button>
                                 </div>
					</div> 
			<!-- END PORTLET-->